#ifndef _IIC_H
#define _IIC_H
#include "public.h"

sbit IIC_SCL = P2^1;
sbit IIC_SDA = P2^0;


void IIC_start(void);
void IIC_stop(void);
void IIC_ack(void);
void IIC_no_ack(void);
unsigned char IIC_wait_ack(void);
void IIC_write_byte(unsigned char dat);
unsigned char IIC_read_byte(unsigned char ack);

#endif
